﻿using System;
using System.IO;

namespace SceneUnpacker.ScanDirectoryDemo
{
    public class FileEventArgs : EventArgs
    {
        private bool _cancel;
        private FileInfo _fileInfo;

        private FileEventArgs()
        {
        }

        internal FileEventArgs(FileInfo fileInfo)
        {
            if (fileInfo == null)
            {
                throw new ArgumentNullException("fileInfo");
            }
            this._fileInfo = fileInfo;
        }

        public bool Cancel
        {
            get
            {
                return this._cancel;
            }
            set
            {
                this._cancel = value;
            }
        }

        public FileInfo Info
        {
            get
            {
                return this._fileInfo;
            }
        }
    }
}

